package com.stock.demo.function.home.view;

import android.content.Context;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;

import com.stock.demo.R;
import com.stock.demo.framework.ui.activity.BaseNetActivity;

public class StockGameActivity extends BaseNetActivity implements StockGameView {

    public static void startAction(Context context) {
        Intent intent = new Intent(context, StockGameActivity.class);
        context.startActivity(intent);
    }

    @Override
    public void initView() {
        findViewById(R.id.iv_stock_game_finish).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }

    @Override
    public void initData() {
        onNetNext(new Object()).setNetComplete();
    }

    @Override
    public View onCreateSuccessView() {
        return LayoutInflater.from(this).inflate(R.layout.activity_stock_game, null);
    }

    @Override
    public void onReload(View v) {

    }
}
